package org.cainiao.servlet.message.rocketmq.samples.producer;

import org.apache.rocketmq.client.producer.SendResult;
import org.apache.rocketmq.spring.core.RocketMQTemplate;

public class ProducerSimpleDemo {

    private RocketMQTemplate rocketMQTemplate;

    public void run() {
        SendResult sendResult = rocketMQTemplate.syncSend("topic1", "Hello, World!");
        System.out.println(sendResult);
    }
}
